package marek.barak.classes;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Date;
import java.util.List;

import marek.barak.interfaces.DataDAO;

public class DataDAOHdd implements DataDAO {
	private ConnectionData con;
	
	public DataDAOHdd(){
		con = ConnectionData.getInstance();
	}
	@Override
	public void saveData(Data day) throws FileNotFoundException, IOException {
	con.saveData(day);
	}

	@Override
	public Data getData() throws FileNotFoundException, IOException, ClassNotFoundException {
		return con.getData();
	}

	@Override
	public List<Data> getDatas(Date from, Date to) {
		// TODO Auto-generated method stub
		return null;
	}

}
